//
//  User.swift
//  SwiftStudyDemoAll
//
//  Created by BINGO on 2019/5/12.
//  Copyright © 2019 mrlong. All rights reserved.
//

import Foundation
class User: SQLModel {
    var id:Int =  -1
    var name:String = ""
    var age:Int = -1
    var sex:Int = -1
    //返回主键
    override func primaryKey() -> String {
        return "id"
    }
    //返回忽略的键值 不入库
    override func ignoredKeys() -> [String] {
        return ["sex"]
    }
}
